COMMENTS: Comments are useful for documenting what your code and program does.

Comments begin with a # symbol and appear gray in the editor. Anything after # is ignored by the computer!

  • Oops, this whole program is commented! Some of these lines are explanations and should be code, but not all!
  • Uncomment the right lines of code by deleting the # or check out the tip below to make the program run correctly.
  • TIP: Try highlighting code and using Ctrl + / on your keyboard to comment or uncomment code!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)